package cn.sail.shiroAuthenticator.service.impl;

import cn.sail.shiroAuthenticator.dao.RoleMapper;
import cn.sail.shiroAuthenticator.pojo.entity.Role;
import cn.sail.shiroAuthenticator.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> getRolesByUserId(Long userId) {
        return roleMapper.getRolesByUserId(userId);
    }
}
